some cleanup on js resources