updates js to allow empty lines