Stratified JavaScript bindings to popular web APIs