Finally got a basic code editor working. As of now though, you need to create a local storage entry that points the the codeEditor function. + Cleaned up code.