fixed a problem in jQuery for checking if CSS is already loaded