fix var js