added comments to js
added php