Edited javascript for dataTables

Added oTable variable for both the motionSensor and doorSensor tables with the correct url_for the routes in flask.  

http://stackoverflow.com/questions/7827986/multiple-datatables-on-the-same-page-with-different-ajax-sources