Javascripts improvements, new subpage search, thinking-sphinx