added js functions for remaining items