fixes for js resources