Implemented restful apifor updating browser dom and console