Change tab to white spaces
Refactored to use resource plugin to avoid including unnecessary js lib.