changed coffee scripts to js files