removed dependency on twt, jquery