You may try to insert Javascript code only in RAW blocks of Pages app or in Designer in Studio. From the "user" part it doesn't allow.