moved external_javascripts to be included only when in cms mode