Modelling with Document Object Model