Creating Javascript version