added pg
dont mangle js
alert messages when to try out the code