quik from js, dirty and buggy