Find error: assign variable to javascript