fixed a bug that cannot access the main coffeescipt file from pure javascript