Replaced javascript code for collection forms by proper backbone widget