Splitting JS into a module
Added registering with service as module
Removing old frontend files