a new way writing browser-side code