Get vars from data instead of DOM