JSPs are different from JavaScript and both work so differently that it would not be possible to convert but you need to write all over again.