...you could translate it to JavaScript with some minor code modifications due to syntax differences...
But anyways you coiuld share with us what your code is supposed to do and we could point you to the right programming language or even offer you a tutorial for the right one for you to pursue...