Moved javascript include to layout xml and sourced protocol with javascript