Added doc/javascriptAPI.txt
Added some inprogress functions
Added Math.PI_2 and Math.PI_4