Fix js statement inheritance