Forgotten how to write javascript