Cleaned up JS - split Glue into new file