a new way writing browser-side javascript