Revised LC js script