moved javascript into the Layout ss files instead of the main Page.ss holder.