some cleanup to js resources