remove unused code
cleanup javascript remnants