Remove executable bit from normal files
Move browser detection to its own function
Space between `function` and parens
Make sure that checks are processed in the correct order
End lines with semicolon
Make sure not to create global variables