Added JS to pub page