Change to javascript