fixed fatal error, correctly loaded scripts in wp_enqueue_scipts hook