minifying js and resolving small problens