move JsParser into its own file
move constant in spec
refactor Rake task code into a helper module