Rename javascript function to bv_form and fix bugs
Add bv_javascript_for helper