updates to fix more effeciency problems. It is still reaaaallly slow integrated into angularJs on firefox