Add js file for device type check
Add crypto package