using require for easeljs