Remove inline jQuery styles, fix safari bugs in the process

Closes #46, #52 and #53