cleanup views by using CommonJS