A WebGL based train simulation