updated rotation, almost have position mapping
most jscript implementation done