fixes #3917 - Added Strong Parmeters

Changed the JS which creates this attributes. changed the example.