First working version of js