use `$(document).ready(moreFields);` for this