fix javascript errors on pages the input doesn't exist on, thanks for loading the js on all pages rails