adding createJS setup with dynamic resizing