can nginx automatically serve js?