improved append and prepend methods
Merge pull request #43 from webawesome/js