JavaScript framework code