Extract core js into separate file to remove dependency on ruby