Moved erb to js converter from lib to task