Added name attr and Fix the js load issue in rails4
Added the example for select