Save and replay lines at init
JSHint fixes