Fixed a few bugs in javascript.

Updated CSS to stand on it's own
Added corners.css if necessary to not depend on jqueryui