Adding page loader and updating js