Add lines to script table
Encode JSON properly
Pass lines value from the client