Javascript How To Create A Function In Matlab