Fixed JavaScript enqueuing