Testing javascript before styling