More AnguarJS testing and mocking work.
Added HTML5 functionality