Added a function to run JavaScript using nodejs