deferring javascript and fixing an input width