Modified js script