fix javascript warnings and "false" url