move view classes before jQuery(document).ready()