Move javascript to a static file
Move search bar inline javascript to static file