Fixed loading framework when app is on localhost/ - and not a subfolder of it