Added some javascript commands