javascript samples updated to bs3