BCD clock implemented using HTML5 and Javascript