Javascript Java-Like Game Framework