JavaScript SDK in layout