moving scripts from init to wp_enqueue_scripts