issue #27 and issue #29: main application javascript loaded only when needed. css loaded only when needed