Added service js to run app as a service