Added Math.floor and Math.pow implementations in JS.