Java to JavaScript complier