js loads in the footer now. check that COnstant is defined