Changed format of javascript variables