Points to pay attention to with Javascript