Changed references of javascript and init of calendar