rearranged javascript so that the custom code goes in one place

- still respecting "//-----custom blah" sections to maintain
mergability with Derek Eder's repository
- adding ">0" to default search to hide non-restaurants