Front-end ready, and dealing with asynchronous js