Fixed library and javascript calls from index file