Add js declaration to script tags for yield