Improved js demo