mobile thunder javascript code style