Finally fixed the error using SublimeText and Firefox console!