EaglercraftX 1.8 is a highly sophisticated, open-source decompilation and reverse-engineering project. Developers successfully compiled the Java bytecode of Minecraft 1.8.8 into JavaScript and WebGL using specialized tools (like TeaVM).
If your school or workplace internet blocks gaming domains, you can play entirely offline.
The controls are standard and familiar to Minecraft players: