How we replaced our Drupal CMS with 589 lines of JavaScript