Update javascript.md

Added info about checking and accepting agreements