Moving JavaScipt into separate file

Moving JS stuff into lsystems.js to make it easier to see changes.