remove Date type cast from "cast" method
rename API extension points to more consistent names
fix build
migrate test to amd
fix jshint warning
fix build
fix amd build