Added javascript for adding searchfields.