JavaScript dependency security