Create js code