Simplified slides.js

Just removed some unneeded code and replaced jQuery with alias object $.

Simplified function calls, which reduces amount of transfered sourcecode to the client.