first iteration done; logging from within js works;