User:Lightmouse/Lightbot/javascript conversion

//