Better size and javascript alerts