Only enqueue JS file if applicable