Frame JavaScript code