moved javascript to lib/attitash.js