Add stub javascript and generalized SECRET_KEY