got jasmin working and solved the euler problem in js