Error package in the main

It is wrong that what should be put in the main is a javascript file