added encryption key
fixed JS references