Refactored details.js to remove major jslint code style violations and moved some methods into separeted functions
Continue with refactoring