JavaScript method snipet for Sublime 2