Added things to the build script and imrpoved browser compatibly
Refactored how the layers are created reducing compexity, also made all tags case sesntive.
Added edit/copy button to plots, cleaned up some code.