Refactor that separates createJs and pixijs from the main library