Change widget insertion to happen after id, to make inline widget scripts available