Fixed on resize for cocoonjs
Detect CocoonJS
Initialize bx and by