Bugfix has_many / modelsearch

Append script into view for renderer has_many
Bugfix modelsearch when there is only one model