I believe I cleaned up all bugs introduced from the js_pattern branch. considering merging the branch back in soon.