drupal integration in main.js and minor edits
drupal integration in main.js and minor edits