Yet another javascript try