Moved js to its own file and changes some of the functions to check all lines in a system when system is selected instead of disable them