Sort out path to javascript files.