Added jQuery UJS
Corrected function return
Added relationship between devices and networks
many bootstrap