Moved Javascript the Layout Header