Added javascript permissions