Javascript models and views (without backbone)