translataing s00d.java to javascript :P
priliminary attempts of translations made me look up simple thinga in js :P