Refactored enqueue_script

Now code look simpler, less and beautiful