Works with the new javascript