clean up HTML to include script after jquery