add javascripts and change includes to relative protocol