fixed js and removed require tree. also added js doucment.ready right under yield in application file