added sine function, fuck you javascript