Hello,
I have to review your existing code to tell you exact cost and time but I thing it must not take more time as you stated it was working fine.
I am Sr. web developer have strong debugging and coding skills. I am full stack developer with good knowledge of Java, PHP, JavaScript, MySQL, MongoDB, AngularJS, JQuery, HTML, Bootstrap, etc.
I have created multiple web application using popular framework like Laravel, Codeigniter, Slim framework, Wordpress, Grails, Spring framework, ExpressJS, AngularJS. I have also experience in server setup and configuration for Java(Tomcat, JBoass, GAE, etc.), PHP(Nginx & Apache both), NodeJS and streaming server.
Thanks
Mohammad Arif