You'll want to wrap all inline scripts inside an IIFE so that the global namespace isn't polluted (see http://en.wikipedia.org/wiki/Immediately-invoked_function_expression).