Updated build.sh to support Safari in addition to Chrome. Now uses a parameter to choose the build target.
Fixed Safari 7 bugs