Add more comments to javascript and some CS