fixed enqueue scripts function