Change status bar javascript to a module