fix syntax error for server

1. add ':' after if statement
2. use 'onload_delay' to get the correct attribute
3. use '%s' to print str onload_delay