Refs #2

Refactoring of css and javascript code, now them are php files to add extra features.