using relative protocol for js scripts