removed js func to attempt to get it working.