Separated the code into a separate file js file, derk.js