js lib for mobile game