Added security module

Added security.js