before using javascript executor